package com.manage.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manage.platform.entity.OrganizeHeadNextEntity;
import com.manage.platform.mapper.OrganizeHeadNextMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * YWD
 * 2025/9/25
 */
@AllArgsConstructor
@Service
public class OrganizeHeadNextServiceImpl extends ServiceImpl<OrganizeHeadNextMapper, OrganizeHeadNextEntity> {


    public Boolean removeByOrgId(Long orgId) {
        LambdaUpdateWrapper<OrganizeHeadNextEntity> updateWrapper = new LambdaUpdateWrapper<>();
        updateWrapper.eq(OrganizeHeadNextEntity::getOrgId, orgId);
        return remove(updateWrapper);
    }


}
